import axios from "./index.js";
// 保电监督管理列表
export const electricityProtection = (data) => {
  return axios.request({
    url: "/warning/electricityProtection/doPageList",
    method: "post",
    data: data
  });
};

// 重要保电列表
export const electricity = (data) => {
  return axios.request({
    url: "/warning/electricity/doPageList",
    method: "post",
    data: data
  });
};
// 重要保电新增
export const electricityProtectionSave = (data) => {
  return axios.request({
    url: "/warning/electricity/save",
    method: "post",
    data: data
  });
};

// 到岗到位列表
export const onDuty = (data) => {
  return axios.request({
    url: "/warning/onDuty/doPageList",
    method: "post",
    data: data
  });
};
// 重要保电编辑
export const doUpdById = (data) => {
  return axios.request({
    url: "/warning/electricity/doUpdById",
    method: "post",
    data: data
  });
};
// 重要保电删除
export const doDelete = (data) => {
  return axios.request({
    url: "/warning/electricity/doDelete",
    method: "get",
    data: data
  });
};
// 应急抢修
export const doPageList = (data) => {
  return axios.request({
    url: "/docking/yjDwyjGzrwd/doNewPageList",
    method: "post",
    data: data
  });
};
// 应急抢修
export const doGetById = (id) => {
  return axios.request({
    url: `/docking/yjDwyjGzrwd/doGetById?id=${id}`,
    method: "get"
  });
};


